DOORS Menu access restrictions

Hi,

I have created a DOORS menu providing access to a number of bespoke DXL functions and Dialogs. Is there any way to tailor access to menu items on this menu depending on the user?

Cheers

Mark
mwilliamson - Tue Sep 28 06:25:26 EDT 2010

Re: DOORS Menu access restrictions
SystemAdmin - Tue Sep 28 09:18:54 EDT 2010

I have used two methods:

  • directory access rights: on an Addins directory in a network share, allow read rights to directories / scripts only to those users or groups which are allowed to access the scripts
  • checking in DXL: the script itself checks that if the user starting the script is allowed to use the script

Re: DOORS Menu access restrictions
mwilliamson - Tue Sep 28 10:19:21 EDT 2010

SystemAdmin - Tue Sep 28 09:18:54 EDT 2010
I have used two methods:

  • directory access rights: on an Addins directory in a network share, allow read rights to directories / scripts only to those users or groups which are allowed to access the scripts
  • checking in DXL: the script itself checks that if the user starting the script is allowed to use the script

Hi Pekka,

Your second option is my current method. I check if the user has access to the specific folder or module and display an appropriate warning box.

I was hoping that there may be some method of doing that check within the menu build so that the option could either be removed or "greyed" if the user did not have appropriate access, but I guess it can be managed well enough within the script and supported by user training.

Thanks

Mark

Re: DOORS Menu access restrictions
SystemAdmin - Tue Oct 05 09:30:48 EDT 2010

mwilliamson - Tue Sep 28 10:19:21 EDT 2010
Hi Pekka,

Your second option is my current method. I check if the user has access to the specific folder or module and display an appropriate warning box.

I was hoping that there may be some method of doing that check within the menu build so that the option could either be removed or "greyed" if the user did not have appropriate access, but I guess it can be managed well enough within the script and supported by user training.

Thanks

Mark

Hi Mark,

There is a method to do it. Look at the createmenu function and the parameter "mapping function". You just have to defined function that run some checks about users (group, access right, etc). Call this function in the first parameter of the createmenu and depending on the result, it must return the following values :

menuAvailable_
menuAvailableChecked_
menuUnavailable_
menuInvisible_

This function can be defined in a DXL file saved in the folder lib\dxl\startupFiles (TBC because I don't remember :-))

Regards

David